// Angular Imports
import { NgModule, Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { ModalModule } from 'ngx-bootstrap';
import { FormsModule } from '@angular/forms';
import { HttpModule, JsonpModule } from '@angular/http';
import { AbpModule, ABP_HTTP_PROVIDER } from '@abp/abp.module';
import { ServiceProxyModule } from '@shared/service-proxies/service-proxy.module';
import { SharedModule } from '@shared/shared.module';
import { API_BASE_URL } from '@shared/service-proxies/service-proxies';
import { AppConsts } from '@shared/AppConsts';
// This Module's Components
import { CategoryAddComponent } from './category-add/category-add.component';
import { CategoryListComponent } from './category-list/category-list.component';

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        HttpModule,
        JsonpModule,
        ModalModule.forRoot(),
        AbpModule,
        ServiceProxyModule,
        SharedModule,
        RouterModule.forChild([
            { path: '', component: CategoryListComponent, pathMatch: 'full' }
        ])
    ],
    declarations: [
        CategoryListComponent,
        CategoryAddComponent
    ],
    exports: [
        CategoryAddComponent,
        CategoryListComponent
    ]
})
export class CategoryModule { }
